<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>访客管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/3rd/X-admin/css/font.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/3rd/X-admin/css/xadmin.css">
    <script src="${pageContext.request.contextPath}/3rd/X-admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/3rd/X-admin/js/xadmin.js"></script>
</head>
<body class="index">
<!-- 顶部开始 -->
<div class="container">
    <div class="logo">
        <a href="index">访客管理系统</a></div>
    <div class="left_open">
        <a><i title="展开左侧栏" class="iconfont">&#xe699;</i></a>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;" onclick="xadmin.add_tab('预约列表','visitorManager/visitorList?shows=1',true)">预约提醒（${num}）</a>
        </li>
        <li class="layui-nav-item">
            <img src="${loginAdmin.headPic}" style="    width: 40px;">
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">${loginAdmin.name}</a>
        </li>
        <li class="layui-nav-item to-index">
            <a href="logout">退出</a>
    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="子管理员管理">&#xe6b8;</i>
                    <cite>子管理员管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('子管理员列表','adminManager/adminList',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>子管理员列表</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="用户管理">&#xe6b8;</i>
                    <cite>用户管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('好友列表','userManager/userList',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>用户列表</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="预约管理">&#xe6b8;</i>
                    <cite>预约管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('预约列表','visitorManager/visitorList',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>预约列表</cite></a>
                    </li>
                    <li>
                        <a href="${pageContext.request.contextPath}/visitorManager/subscribe" target="_blank">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>分享预约地址</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="历史预约记录管理">&#xe6b8;</i>
                    <cite>历史预约记录管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('历史预约记录列表','visitorRecordManager/visitorList',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>历史预约记录列表</cite></a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont left-nav-li" lay-tips="出入影像管理">&#xe6b8;</i>
                    <cite>出入影像管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i></a>
                <ul class="sub-menu">
                    <li>
                        <a onclick="xadmin.add_tab('视频流列表','videoFlowingManager/videoFlowingList',true)">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>出入影像列表</cite></a>
                    </li>
                </ul>
            </li>

            <li>
                <a onclick="updateUserInfo(${loginAdmin.id});">
                    <i class="iconfont">&#xe6a7;</i>
                    <cite>修改个人资料</cite></a>
            </li>
        </ul>
    </div>
</div>
<div class="page-content">
    <iframe src='adminManager/adminList' id="iframe" scrolling="yes" width="100%" height="100%" class="x-iframe"></iframe>
</div>

</body>
<script type="text/javascript">
    function jump(url) {
        var $frame = $("#iframe");
        $frame.attr("src", url);
    }

    function updateUserInfo(id) {
        xadmin.open('修改资料','${pageContext.request.contextPath}/adminManager/admin-update?id='+id,438,516);
    }
</script>
</html>
